home *** CD-ROM | disk | FTP | other *** search
- Path: news1.h1.usa.pipeline.com!usenet
- From: grantp@usa.pipeline.com(Pete)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ and dynamic loading of libraries
- Date: 2 Feb 1996 12:34:48 GMT
- Organization: Kalevi, Inc.
- Message-ID: <4et0d8$dlc@news1.usa.pipeline.com>
- NNTP-Posting-Host: pipe10.h1.usa.pipeline.com
- X-PipeUser: grantp
- X-PipeHub: usa.pipeline.com
- X-PipeGCOS: (Pete)
- X-Newsreader: Pipeline USA v3.3.0
-
- On Feb 01, 1996 09:06:31 in article <C++ and dynamic loading of libraries>,
- 'u19809@kb.be (Wim Delvaux)' wrote:
-
-
- >I would like to be able to load libraries generated from C++ from
- >other C++ code. This is not a big problem but I would like to use the
- >libraries ON DEMAND ie. when the application needs it and not at
- >compile time. (Using LOADLIBRARY/FINDSYMBOL api calls of the dynamic
- >loader components of several OS-ses : Windows, Linux, Unix, ...)
- >
- >There is however the problem of the name mangling : What is the name
- >of the C++ function I need ?
- >
- >Does there exist (compiler-specific) API's to mangle/demangle that can
- >be used from within an application ?
- >Does anybody have other suggestions how to do this ?
- >
-
- Read up on extern "C" declaration. It's covered in the
- FAQ as well as your compiler documentation. But that
- only suppresses C++ name mangling -- it doesn't have
- anything to do with wether or not the library is static
- or dynamic. If your library calls work OK when the lib
- is statically linked, they should work OK when using
- dynamic linking also.
-
- --
- Pete Grant
- Kalevi, Inc.
- Object Oriented Software Development
-